﻿using Abp.Application.Services;
using Abp.Authorization.Users;
using RMM.Authorization.Tenants;
using RMM.Core.Entity.Users;
using RMM.UserAppService.Dtos;
using RMM.UserAdminService.Dtos;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.Http;

namespace RMM.UserAdminService
{
    public interface IUserAdminService : IApplicationService
    {
        /// <summary>
        /// 登陆
        /// </summary>
        /// <param name="code">js_code</param>
        /// <returns></returns>
        //[HttpPost]
        //Task<ResultDto> WxLoginAsync(string code);

        //获取所有用户信息
        [HttpPost]
        Task<List<AdminUserDto>> GetUserListAsync();

        /// <summary>
        /// 登陆
        /// </summary>
        /// <param name="username"></param>
        /// <param name="password"></param>
        /// <returns></returns>
        [HttpPost]
        Task<AdminUserDto> LoginAdminAsync(string username ,string password);


        /// <summary>
        /// 根据用户id获取用户信息
        /// </summary>
        /// <param name="userId"></param>
        /// <returns></returns>
        [HttpGet]
        Task<AdminUserDto> GetUserByidAsync(int userId);
    }
}
